package protocol

// AuthData 认证数据
type AuthData struct {
	Token  string `json:"token"`
	UserID string `json:"user_id"`
}

// NewAuthMessage 创建认证消息
func NewAuthMessage(token, userID string) *Message {
	return &Message{
		Event: EventAuth,
		Data: AuthData{
			Token:  token,
			UserID: userID,
		},
		Timestamp: 0,
		Sequence:  0,
	}
}
